/**
 * @file   attribute_factory.cpp
 * @author wolfhead <wolfhead@wolfhead-laptop>
 * @date   Tue Oct 25 10:54:24 2011
 * 
 * @brief  
 * 
 * 
 */
#include "attribute_factory.h"
#include "attribute.h"

using namespace PP;

AttributeFactory::AttributeFactory()
{
}

AttributeFactory::~AttributeFactory()
{
}

Attribute * AttributeFactory::CreateAttribute(const AttributeConfig& config)
{
    Attribute * pAttr = _CreateAttribute(config);
    if (!pAttr)
    {
        return NULL;
    }

    return pAttr;
}

Attribute * AttributeFactory::_CreateAttribute(const AttributeConfig& config)
{
    return new Attribute(config);
}
